/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.stickers.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.net.ecode.common.persistence.Page;
import cn.net.ecode.common.service.CrudService;
import cn.net.ecode.elec.stickers.entity.ElecConvenientStickers;
import cn.net.ecode.elec.stickers.dao.ElecConvenientStickersDao;

/**
 * 便利贴Service
 * @author AlanShelby
 * @version 2019-09-26
 */
@Service
@Transactional(readOnly = true)
public class ElecConvenientStickersService extends CrudService<ElecConvenientStickersDao, ElecConvenientStickers> {
	
	/**
	 * 获取单条数据
	 * @param elecConvenientStickers
	 * @return
	 */
	public ElecConvenientStickers get(ElecConvenientStickers elecConvenientStickers) {
		return super.get(elecConvenientStickers);
	}
	
	/**
	 * 查询列表数据
	 * @param elecConvenientStickers
	 * @return
	 */
	public List<ElecConvenientStickers> findList(ElecConvenientStickers elecConvenientStickers) {
		return super.findList(elecConvenientStickers);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param elecConvenientStickers
	 * @return
	 */
	public Page<ElecConvenientStickers> findPage(Page<ElecConvenientStickers> page, ElecConvenientStickers elecConvenientStickers) {
		return super.findPage(page, elecConvenientStickers);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param elecConvenientStickers
	 */
	@Transactional(readOnly = false)
	public void save(ElecConvenientStickers elecConvenientStickers) {
		super.save(elecConvenientStickers);
	}
	
	/**
	 * 删除数据
	 * @param elecConvenientStickers
	 */
	@Transactional(readOnly = false)
	public void delete(ElecConvenientStickers elecConvenientStickers) {
		super.delete(elecConvenientStickers);
	}
	
}